<div class="mediatypes view">
<h2><?php echo __('Mediatype'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($mediatype['Mediatype']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($mediatype['Mediatype']['name']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Mediatype'), array('action' => 'edit', $mediatype['Mediatype']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Mediatype'), array('action' => 'delete', $mediatype['Mediatype']['id']), null, __('Are you sure you want to delete # %s?', $mediatype['Mediatype']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Mediatypes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mediatype'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Books'), array('controller' => 'books', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Book'), array('controller' => 'books', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Books'); ?></h3>
	<?php if (!empty($mediatype['Book'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Booktype Id'); ?></th>
		<th><?php echo __('Is Printed'); ?></th>
		<th><?php echo __('Is Electronic'); ?></th>
		<th><?php echo __('Electronic Reg Number'); ?></th>
		<th><?php echo __('Mediatype Id'); ?></th>
		<th><?php echo __('Is Many Volumes'); ?></th>
		<th><?php echo __('Book Name'); ?></th>
		<th><?php echo __('Book Editor'); ?></th>
		<th><?php echo __('Book Info'); ?></th>
		<th><?php echo __('Publishing Place'); ?></th>
		<th><?php echo __('Publishing House'); ?></th>
		<th><?php echo __('Publishing Year'); ?></th>
		<th><?php echo __('Pages Total'); ?></th>
		<th><?php echo __('ISBN'); ?></th>
		<th><?php echo __('Recstatus Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Moderator Comment'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($mediatype['Book'] as $book): ?>
		<tr>
			<td><?php echo $book['id']; ?></td>
			<td><?php echo $book['booktype_id']; ?></td>
			<td><?php echo $book['is_printed']; ?></td>
			<td><?php echo $book['is_electronic']; ?></td>
			<td><?php echo $book['electronic_reg_number']; ?></td>
			<td><?php echo $book['mediatype_id']; ?></td>
			<td><?php echo $book['is_many_volumes']; ?></td>
			<td><?php echo $book['book_name']; ?></td>
			<td><?php echo $book['book_editor']; ?></td>
			<td><?php echo $book['book_info']; ?></td>
			<td><?php echo $book['publishing_place']; ?></td>
			<td><?php echo $book['publishing_house']; ?></td>
			<td><?php echo $book['publishing_year']; ?></td>
			<td><?php echo $book['pages_total']; ?></td>
			<td><?php echo $book['ISBN']; ?></td>
			<td><?php echo $book['recstatus_id']; ?></td>
			<td><?php echo $book['created']; ?></td>
			<td><?php echo $book['modified']; ?></td>
			<td><?php echo $book['moderator_comment']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'books', 'action' => 'view', $book['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'books', 'action' => 'edit', $book['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'books', 'action' => 'delete', $book['id']), null, __('Are you sure you want to delete # %s?', $book['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Book'), array('controller' => 'books', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
